package com.example.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.domain.Manager;
import com.example.mapper.ManagerMapper;
import com.example.mapper.StudentMapper;
import com.example.service.ManagerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class ManagerServiceImpl extends ServiceImpl<ManagerMapper, Manager> implements ManagerService {
    @Autowired
    private ManagerMapper managerMapper;
    @Override
    public void add(Manager manager) {
        managerMapper.add(manager);
    }

    @Override
    public void deleteById(Integer id) {
        managerMapper.deleteManagerById(id);
    }

    @Override
    public void updateManager(Manager manager) {
        managerMapper.updateManager(manager);
    }

    @Override
    public Manager findById(Integer id) {
        Manager byId = managerMapper.findById(id);
        return byId;
    }
}
